import { Radio } from 'antd'
import React from 'react'

export default function LiveTeacher() {
  const [value, setValue] = React.useState(1)

  const onChange = (e) => {
    console.log('radio checked', e.target.value)
    setValue(e.target.value)
  }
  return (
    <div>
      <Radio.Group onChange={onChange} value={value}>
        <Radio value={1}>我来上课</Radio>
        <Radio value={2}>我来听课</Radio>
      </Radio.Group>
    </div>
  )
}
